package com.scarllet.springbootaop.controller;

import com.scarllet.springbootaop.annotation.SysLog;
import com.scarllet.springbootaop.enums.OperationType;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/test")
public class TestController {
    @GetMapping("/info")
    @SysLog(value = "日志aop测试",operationType = OperationType.SELECT)
    public void aop(){
        log.info("1111111");
    }
}
